import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter);

import AddMutiDataView from '@/views/AddMutiDataView'
import DashBoardIndex from '@/components/DashBoardIndex.vue'
import RecommendJobView from '@/views/RecommendJobView'

const routes = [
    // 路由列表
    {
        path: '/',
        component: DashBoardIndex
    },
    {
        path: '/index',
        component: DashBoardIndex
    },
    // 可以尝试children实现二级路由...
    // 导入数据
    { path: "/addData/muti", name: "AddMutiDataView", component: AddMutiDataView },

    // 职位推荐
    { path: "/recommand", name: "RecommendJobView", component: RecommendJobView }
]

const router = new VueRouter({
    mode: 'history',
    routes
})

export default router; 